const mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');
var schema = new mongoose.Schema({
    name: String,
    info: String,
    classid: String,
    classname: String,
    inventory: Number,
    salary: Number
});
schema.plugin(mongoosePaginate);
module.exports = mongoose.model('Item', schema, 'product');